﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using SmartProject.Entity;

using FluentNHibernate.Mapping;

namespace SmartProject.Mapping
{
    public class SeverityMap : ClassMap<Severity>
    {
        public SeverityMap()
        {
            Table("SmartProject_Severity");
            Id(x => x.Id).Column("SeverityId");
            Map(x => x.Description)
                .Length(100)
                .Not.Nullable();
            Map(x => x.Level);
            Map(x => x.Active).Not.Nullable();
            Map(x => x.Created).Not.Nullable();
            /*
            HasMany<Log>(x => x.Logs)
                .KeyColumn("LogId")
                .Cascade.None()
                .Fetch.Select();
            */
        }
    }
}
